package com.medica.ledproject.socke;

/**
 * @author xiaona
 * @date 2024/5/30
 * @description TODO
 */

import jakarta.annotation.Resource;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class NettyStartListener implements ApplicationRunner
{

    @Resource
    private SocketServer socketServer;

    public void run(ApplicationArguments args)
            throws Exception
    {
        this.socketServer.start();
        System.out.println("socket启动成功");
    }
}
